package vip.xiaozhao.paotui.service;

import org.springframework.stereotype.Service;
import vip.xiaozhao.paotui.intf.entity.PaotuiCollege;
import vip.xiaozhao.paotui.intf.mapper.PaoTuiCollegeMapper;
import vip.xiaozhao.paotui.intf.service.PaotuiCollegeService;

import javax.annotation.Resource;


@Service
public class PaotuiCollegeServiceImpl implements PaotuiCollegeService {
    @Resource
    private PaoTuiCollegeMapper paoTuiCollegeMapper;


    @Override
    public int insert(PaotuiCollege college) {
        return paoTuiCollegeMapper.insert(college);
    }

    @Override
    public int update(PaotuiCollege college) {
        return paoTuiCollegeMapper.update(college);
    }

    @Override
    public PaotuiCollege loadById(int id) {
        return paoTuiCollegeMapper.loadById(id);
    }

    @Override
    public PaotuiCollege loadCollegeByUserId(int userId) {
        return paoTuiCollegeMapper.loadCollegeByUserId(userId);
    }
}
